﻿@if (this.Model != null)
{
    @Html.TextBox(String.Empty, CloudFranceTriple.Models.Rules.ConvertTimeZoneFromUtcToUser(new CloudFranceTriple.WebRole.WebSecurityWrapper().CurrentUserId, (DateTime)this.Model).ToShortDateString())
    <script type="text/javascript">
        $(document).ready(function () {
            $("#Birthday").datepicker($.datepicker.regional["fr"]);
            $("#DateBegin").datepicker($.datepicker.regional["fr"]);
            $("#DateEnd").datepicker($.datepicker.regional["fr"]);
            $("#CreationDatePoll").datepicker($.datepicker.regional["fr"]);
            $("#PurchaseDate").datepicker($.datepicker.regional["fr"]);
            $("#BankDate").datepicker($.datepicker.regional["fr"]);
        });
        jQuery(function ($) {
            $.datepicker.regional['fr'] = {
                closeText: 'Ok',
                prevText: '&#x3c;Préc',
                nextText: 'Suiv&#x3e;',
                currentText: 'Aujourd\'hui',
                monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin',
                'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
                monthNamesShort: ['Jan', 'Fév', 'Mar', 'Avr', 'Mai', 'Jun',
                'Jul', 'Aoû', 'Sep', 'Oct', 'Nov', 'Déc'],
                dayNames: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'],
                dayNamesShort: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'],
                dayNamesMin: ['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa'],
                weekHeader: 'S',
                dateFormat: 'dd/mm/yy',
                firstDay: 1,
                isRTL: false,
                showMonthAfterYear: false,
                yearSuffix: '',
                showAnim: 'drop',
                showOtherMonths: true,
                selectOtherMonths: true,
                showButtonPanel: false,
                changeMonth: true,
                changeYear: true,
                numberOfMonths: 1,
                showWeek: false,
                setDate: '1/1/1995',
                minDate: '-90Y',
                maxdate: '-18Y',
            };
            $.datepicker.setDefaults($.datepicker.regional['fr']);
        });
    </script>
}
